Elementor\Core\Files\Assets\Svg\Svg_Handler B

Total Complexity 96
Dependencies 3
Dependents 3
Total lines 756
Lines of code 425
Logical lines of code 178
Comment lines 247
Methods 38
Properties 2

Methods 38

Method Rating Maintainability Complexity Lines of code
set_svg_meta_data()
A
56 11 14
validate_allowed_attributes()
A
54 9 19
wp_prepare_attachment_for_js()
S
51 7 26
sanitizer()
S
49 6 31
get_allowed_attributes()
S
37 1 94
sanitize_svg()
S
56 5 20
handle_upload_prefilter()
S
61 5 11
strip_xlinks()
S
56 4 18
get_inline_svg()
S
59 4 15
sanitize_elements()
S
59 4 14
is_allowed_tag()
S
62 3 12
get_allowed_elements()
S
48 1 38
validate_use_tag()
S
69 3 6
strip_php_tags()
S
64 3 9
strip_doctype()
S
69 3 7
strip_comments()
S
66 3 8
is_remote_value()
S
64 2 9
is_encoded()
S
66 2 8
set_attachment_id()
S
77 1 4
get_attachment_id()
S
82 1 3
svg_sanitizer_can_run()
S
75 1 4
upload_mimes()
S
80 1 3
wp_handle_upload_prefilter()
S
80 1 3
is_svg_uploads_enabled()
S
75 1 4
get_name()
S
81 1 3
get_meta()
S
79 1 3
has_js_value()
S
79 1 3
is_a_attribute()
S
78 1 3
remove_element()
S
81 1 3
encode_svg()
S
80 1 3
decode_svg()
S
80 1 3
read_from_file()
S
80 1 3
delete_meta_cache()
S
81 1 3
get_file_type()
S
82 1 3
get_mime_type()
S
82 1 3
delete_meta()
S
80 1 3
update_meta()
S
79 1 3
__construct()
S
69 1 6